<?php

class Validator_QualitySeries extends Validator_Default {
    private $db;
    public function __construct($db) {
        $this->db = $db;
    }

    public function isValid($obj) {
        return $this->isValidRK($obj);
    }

	private function isValidRK($obj) {
        $rkValidator = new Validator_RK();
        if (!$rkValidator->isValid($obj->from)) {
            $this->error = $rkValidator->error;
            return false;
        }
        return true;
    }
}
